import { Notification, Button, Loading } from "element-ui";
import Vue from "vue";

// 任务结束时的回调
export const handleData = (id) => {
  const h = new Vue().$createElement;
  let vnode = h(
    "div",
    {
      style: {
        marginTop: "18px",
      },
    },
    [
      h(
        "button",
        {
          class: "el-button is-plain el-button--mini",
          attrs: {
            disabled:'true'
          },
          on: {
            click: () => {
              console.log("111111");
              a.close();
            },
          },
        },
        "稍后查看"
      ),
      h(
        "button",
        {
          class: "el-button  el-button--primary el-button--mini",
          on: {
            click: function () {
              console.log("2222", id);
            },
          },
        },
        "立即前往"
      ),
    ]
  )
  let div = document.createElement('div')
  div.innerHTML = vnode
  document.body.appendChild(div)
  return 
  let a = Notification.success({
    customClass: "diy",
    title: "智能标引任务已完成是否前往",
    message: '111',
    position: "bottom-right",
    duration: 0,
    offset: 100,
  });
};
